<?php defined('SYSPATH') OR die('No direct access allowed.'); ?>
<?php echo $cabecalho; ?>
<?php echo $menu_esq; ?>
<div id="mainContent">

<script type="text/javascript" src="<?php echo url::base()?>access/media/js/jquery"></script>
<script type="text/javascript" src="<?php echo url::base()?>access/media/js/jquery.flot"></script>
<script type="text/javascript" src="<?php echo url::base()?>access/media/js/effects"></script>

<link rel="stylesheet" type="text/css" href="<?php echo url::base()?>access/media/css/style" />

<h2>Visitors (<?php echo date('Y/m/d', $start_date)?> - <?php echo date('Y/m/d', $end_date)?>)</h2>
<?php echo form::open(NULL, array('method' => 'get'))?>
<p>Start Date: <?php echo form::input('start_date', date('Y/m/d', $start_date))?><br />
End Date: <?php echo form::input('end_date', date('Y/m/d', $end_date))?></p>
<p><?php echo form::submit('go', 'Go')?></p>
<?php echo form::close()?>
<h3>Daily Log</h3>
<?php echo $visits?>

<!--<table id="visitorstable">
<caption>Visitors Graph</caption>
<thead>
<tr>
	<td></td>
	<?php foreach($table as $day => $accesses):?>
	<td id="<?php echo $day?>"><?php echo date('m/d/Y', $day)?></td>
	<?php endforeach;?>
</tr>
</thead>
<tfoot>

</tfoot>
<tbody>
<tr>
	<td>Page Views</td>
	<?php foreach($table as $day => $accesses):?>
	<td headers="<?php echo $day?>"><?php echo count($accesses)?></td>
	<?php endforeach;?>
</tr>
</tbody>
</table>-->


<h3>Unique Visitors</h3>
<?php echo $unique_visits?>

<!--<table id="uniquevisitorstable">
<caption>Visitors Graph</caption>
<thead>
<tr>
	<td></td>
	<?php foreach($uniquetable as $day => $accesses):?>
	<td id="<?php echo $day?>"><?php echo date('m/d/Y', $day)?></td>
	<?php endforeach;?>
</tr>
</thead>
<tfoot>

</tfoot>
<tbody>
<tr>
	<td>Page Views</td>
	<?php foreach($uniquetable as $day => $accesses):?>
	<td headers="<?php echo $day?>"><?php echo count($accesses)?></td>
	<?php endforeach;?>
</tr>
</tbody>
</table>-->
<!-- end #mainContent --></div>
<?php echo $rodape; ?>